<?php 
/*
Template Name: Product mart
*/
get_header();
$this_is_page=true;
?>
		 <div class="ProContent">
	 	   <div class="ProSubmenu">
		   	<ul>
				
				<li class="Home"><a href="<?php bloginfo('url'); ?>" style="margin-left:0px;"><img src="<?php bloginfo('template_url'); ?>/images/homebutton.png" /></a></li>
				<li class="TitleButton"><a><img src="<?php bloginfo('template_url'); ?>/images/hotstitle.png" /></a></li>

				   <?php
                            $the_query = new WP_Query(array ( 'orderby' => 'date', 'order' => 'DESC', 'cat' => 20));
                            while ($the_query->have_posts()) : $the_query->the_post();
                            ?>
                                <li class="Button hotsred">    
                                    <a href="<?php the_permalink() ?>">
                                        <?php the_title_attribute(); ?>
                                    </a>    
                                </li>      
                   <?php endwhile; ?>	
				<li class="TitleButton"><a><img src="<?php bloginfo('template_url'); ?>/images/product.png" /></a></li>						
				<li class="Button"><a href="#">寿险产品大全</a></li>
			
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#nbaby">-少儿教育险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#nfamily">-家庭保障险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#noldman">-养老年金险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#ninvest">-投资理财险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#nmedicare">-重疾医疗险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#naccident">-意外伤害险</a></li>
			
				<li class="Button"><a href="#">财险产品大全</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1795">-机动车辆保险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1824">-意外险（团意）</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1812">-家财险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1786">-企业财产保险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1862">-建工险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1928">-其他财险</a></li>
						
				<li class="TitleButton"><a href="<?php bloginfo('url'); ?>/?page_id=882"><img src="<?php bloginfo('template_url'); ?>/images/active.png" /></a></li>
							

				

				<li class="Image"><img src="<?php bloginfo('template_url'); ?>/images/newsimage.png" /></li>
			</ul>
			
			
		   </div>
		   
		   <div class="ProScan">
		     <div class="ProWordstitle"><a name="prodtop"><img src="<?php bloginfo('template_url'); ?>/images/productban.png"/></a></div>
		     <div class="ProPublicWordscontent">
		  		<div class="ProTitle">
				<?php if(function_exists('sbc')){  
				    sbc();  
				} else { ?>  
				    
				<?php } ?>
					<div class="Prolist">
					<a href="#nbaby"><img src="<?php bloginfo('template_url'); ?>/images/babyin.png" /></a>
					<a href="#nfamily"><img src="<?php bloginfo('template_url'); ?>/images/familyin.png" /></a>
					<a href="#noldman"><img src="<?php bloginfo('template_url'); ?>/images/oldin.png"  /></a>
					<a href="#ninvest"><img src="<?php bloginfo('template_url'); ?>/images/inin.png" /></a>
					<a href="#nmedicare"><img src="<?php bloginfo('template_url'); ?>/images/patientin.png" /></a>
					<a href="#naccident"><img src="<?php bloginfo('template_url'); ?>/images/accin.png" /></a>
					</div>
					<div class="Prolist">
					<a href="<?php bloginfo('url'); ?>/?p=1795"><img src="<?php bloginfo('template_url'); ?>/images/carin.png" /></a>
					<a href="<?php bloginfo('url'); ?>/?p=1786"><img src="<?php bloginfo('template_url'); ?>/images/comin.png" /></a>
					<a href="<?php bloginfo('url'); ?>/?p=1928"><img src="<?php bloginfo('template_url'); ?>/images/othersin.png" /></a>
					</div>
				</div>
				
			    <div class="ProTable">
			
		<!-- Baby insurance area - START-->
					<div class="Babytitle"><div class="Babypic"><a name="nbaby"><img src="<?php bloginfo('template_url'); ?>/images/babytitle.png" /></a></div><div class="Back"><a href="#prodtop">返回顶部</a></div></div>
					<?php
						$the_query = new WP_Query('category_name=babyinsurance&posts_per_page=50');
						$column_flag = 0;
						
                        while ($the_query->have_posts()) : $the_query->the_post(); 
							if($column_flag == 0){
								echo "<div class=\"Babyinone\">";
								$column_flag = 1;
								}
								else{							
								echo "<div class=\"Babyintwo\">";
								$column_flag = 0;	
								} 
						?>
						<div class="Babytype"> 
							<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
						</div>
						<div class="Babypic">
						<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
							  the_post_thumbnail();}else{}?>							
						</div>
						<div class="Babywords">
							<?php the_excerpt(); ?>
						</div>
					</div>				
					<?php endwhile; ?>
		<!-- Baby insurance area - End-->			
		
		<!-- Family insurance area - START-->			
					<div class="Babytitle"> <div class="Babypic"><a name="nfamily"><img src="<?php bloginfo('template_url'); ?>/images/familytitle.png" /></a></div><div class="Back"><a href="#prodtop">返回顶部</a></div></div>
										<?php
						$the_query = new WP_Query('category_name=familyinsurance&posts_per_page=50');
						$column_flag = 0;
						
                        while ($the_query->have_posts()) : $the_query->the_post(); 
							if($column_flag == 0){
								echo "<div class=\"Babyinone\">";
								$column_flag = 1;
								}
								else{							
								echo "<div class=\"Babyintwo\">";
								$column_flag = 0;	
								} 
						?>
						<div class="Babytype"> 
							<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
						</div>
						<div class="Babypic">
						<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
							  the_post_thumbnail();}else{}?>							
						</div>
						<div class="Babywords">
							<?php the_excerpt(); ?>
						</div>
					</div>				
					<?php endwhile; ?>
		<!-- Base insurance area - End-->	
		
		<!-- Old people insurance area - START-->	
					<div class="Babytitle"> <div class="Babypic"><a name="noldman"><img src="<?php bloginfo('template_url'); ?>/images/oldtitle.png" /></a></div><div class="Back"><a href="#prodtop">返回顶部</a></div></div>	
						<?php
						$the_query = new WP_Query('category_name=oldinsurance&posts_per_page=50');
						$column_flag = 0;
						
                        while ($the_query->have_posts()) : $the_query->the_post(); 
							if($column_flag == 0){
								echo "<div class=\"Babyinone\">";
								$column_flag = 1;
								}
								else{							
								echo "<div class=\"Babyintwo\">";
								$column_flag = 0;	
								} 
						?>
						<div class="Babytype"> 
							<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
						</div>
						<div class="Babypic">
						<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
							  the_post_thumbnail();}else{}?>							
						</div>
						<div class="Babywords">
							<?php the_excerpt(); ?>
						</div>
					</div>				
					<?php endwhile; ?>
		<!-- Old people insurance area - End-->	
		
		<!-- Invest insurance area - START-->
		<div class="Babytitle"> <div class="Babypic"><a name="ninvest"><img src="<?php bloginfo('template_url'); ?>/images/intitle.png" /></a></div><div class="Back"><a href="#prodtop">返回顶部</a></div></div>
			<?php
						$the_query = new WP_Query('category_name=investinsurance&posts_per_page=50');
						$column_flag = 0;
						
                        while ($the_query->have_posts()) : $the_query->the_post(); 
							if($column_flag == 0){
								echo "<div class=\"Babyinone\">";
								$column_flag = 1;
								}
								else{							
								echo "<div class=\"Babyintwo\">";
								$column_flag = 0;	
								} 
						?>
						<div class="Babytype"> 
							<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
						</div>
						<div class="Babypic">
						<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
							  the_post_thumbnail();}else{}?>							
						</div>
						<div class="Babywords">
							<?php the_excerpt(); ?>
						</div>
					</div>				
					<?php endwhile; ?>
		<!-- Invest insurance area - END-->	
		
		<!-- Medicare insurance area - START-->	
		<div class="Babytitle"><div class="Babypic"><a name="nmedicare"><img src="<?php bloginfo('template_url'); ?>/images/patienttitle.png" /></a></div><div class="Back"><a href="#prodtop">返回顶部</a></div></div>
		<?php
						$the_query = new WP_Query('category_name=medicareinsurance&posts_per_page=50');
						$column_flag = 0;
						
                        while ($the_query->have_posts()) : $the_query->the_post(); 
							if($column_flag == 0){
								echo "<div class=\"Babyinone\">";
								$column_flag = 1;
								}
								else{							
								echo "<div class=\"Babyintwo\">";
								$column_flag = 0;	
								} 
						?>
						<div class="Babytype"> 
							<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
						</div>
						<div class="Babypic">
						<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
							  the_post_thumbnail();}else{}?>							
						</div>
						<div class="Babywords">
							<?php the_excerpt(); ?>
						</div>
					</div>				
					<?php endwhile; ?>
		<!-- Medicare insurance area - END-->
		<!-- Accident insurance area - START-->	
				<div class="Babytitle"><div class="Babypic"><a name="naccident"><img src="<?php bloginfo('template_url'); ?>/images/acctitle.png" /></a></div><div class="Back"><a href="#prodtop">返回顶部</a></div></div>
				<?php
								$the_query = new WP_Query('category_name=accidentinsurance&posts_per_page=50');
								$column_flag = 0;
								
		                        while ($the_query->have_posts()) : $the_query->the_post(); 
									if($column_flag == 0){
										echo "<div class=\"Babyinone\">";
										$column_flag = 1;
										}
										else{							
										echo "<div class=\"Babyintwo\">";
										$column_flag = 0;	
										} 
								?>
								<div class="Babytype"> 
									<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
								</div>
								<div class="Babypic">
								<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
									  the_post_thumbnail();}else{}?>							
								</div>
								<div class="Babywords">
									<?php the_excerpt(); ?>
								</div>
							</div>				
							<?php endwhile; ?>
				<!-- Accident insurance area - END-->		
				

					
			    </div>
		     </div>
			  <div class="AboutWordsbuttom">
			 </div>
		   </div>
		 </div>

<?php get_footer(); ?>